package inheritance;

public class Schoolchild extends Student{
    public static void main(String[] args) {

        Schoolchild s = new Schoolchild();

        s.name = "张君宝";//public
        s.number = 10012002;//protected
        s.age = 8;//package-private
        // s.head = "君宝的头" ; // private : The field Student.head is not visible ( 因为私有 )

        s.show();
    }
}
